Conversation
GitOrigin-RevId: 83931c73334f5e43763ebe692a98a7dc8884341e
GitOrigin-RevId: a788bb98d25e31eaca6950368f2378e803cf66a0
GitOrigin-RevId: 207bfb8359003ea8757e5a9b45c29555656939e5
* fix: remove some unwanted imports from client/ in shared/ * refactor: move isPositionManagedFrame to studioCtx GitOrigin-RevId: 42c5a6225988e12a21a91d3f5700e3a97d10e47c
GitOrigin-RevId: 98619a2e83195662b9edd9010e169efebe7cbc12
* fix: Swallow s3 error in dev mode * fix: Only ignore error in development GitOrigin-RevId: d94e49f84ecebd52c51dbe630f2dd89b23aca77e
* feat(comments-filter): add user mentions filter in the Comments Tab * feat(comments-filter): add user participation logic in the mentions and replies filter * feat(comments-filter): add comments resolved filter * chore: plasmic.json and plasmic.lock changes * chore: reverted an unncessary change * feat(comments-filter): removed setter and getter for comments filter observable * feat(comments-filter): fix imports for shared code GitOrigin-RevId: 7a1524fcc6cb8751a0f348e0bb0e4c158ce885f8
GitOrigin-RevId: b5fc0391536afd33a5a1130040d13abccad0d2eb
* [DEVOP-130] Created pipeline to push services to GAR * Chore(build-and-push-services): Changed trigger condition to test * Chore(build-and-push-services): Added matrix for services and contexts * Chore(build-and-push-services): Remove matrix for context and added conditional step for it * Chore(build-and-push-services): Changed context for wab * Chore(build-and-push-services): Added Dockerfile path input to env and to docker-buildx action * Chore(build-and-push-services): Added steps to build plasmic-deployed.json and change Dockerfile * Chore(build-and-push-services): Added steps to build plasmic-deployed.json and change Dockerfile * Chore(build-and-push-services): Remove .tmp from copy instructions * Chore(build-and-push-services): Added working-directory * Chore(build-and-push-services): Changed path for node command * Chore(build-and-push-services): Fixed path for Dockerfile commands * Fix(build-and-push-services): added wab prefix to fix path * Chore(build-and-push-services): Remove make command * Chore(build-and-push-services): Fixed Dockerfile * Chore(build-and-push-services): Changed runs-on * Chore(build-and-push-services): Changed runs-on * Chore(build-and-push-services): Changed runs-on * Test(build-and-push-services): Commented make command * Test(build-and-push-services): Commented make command * Chore(build-and-push-services): Remove -f function * Chore(build-and-push-services): Started tagging from 1 * Chore(build-and-push-services): Remove plasmic-deployed.json file * Chore(build-and-push-services): Added condition to build plasmic-deployed, changed tagging system and remove debug step * Chore(build-and-push-services): Remove paths-ignore and added exclude condition in changes job * Chore(platform): Added new Dockerfile for services * Chore(Dockerfile): Renamed new dockerfile * Chore(build-and-push-services): Added new filters * Feat(build-and-push-services): Added caching capability to workflow * Chore(build-and-push-services): Added again branch trigger * Chore(build-and-push-services): Added comments to explain critical steps behavior * Chore(build-and-push-services): Using base Dockerfile to build image * Chore(build-and-push-services): Added again branch trigger * Chore(build-and-push-services): Added pre-build steps to not change Dockerfile * Chore(build-and-push-services): Simplify pre-build step * Chore(build-and-push-services): Added working-directory to pre-build * Chore(build-and-push-services): Changed context * Chore(build-and-push-services): Removed condition * Chore(build-and-push-services): Check if plasmic-deployed.json exists in the given path * Chore(build-and-push-services): Remove debug step * Chore(build-and-push-services): Remove duplicated ignore condition * Fix(build-and-push-services): Fixed typos and spaces * Chore(build-and-push-services): Added condition for matrix to run only outputted jobs * Chore(build-and-push-services): Remove condition for matrix * Chore(platform): Remove Dockerfile.v2 since it's not needed * Chore(platform): Test matrix * Chore(platform): Fixed output from changes job * Chore(platform): Test both services * Chore(build-and-push-services): Remove branch trigger * Chore(build-and-push-services): Remove exceptions from wab-ci --------- Co-authored-by: Andrés Dominguez <schub_andres@plasmic.app> GitOrigin-RevId: 0b982f5ed817b0feed9d4ea11cbc7d89c45e0025
GitOrigin-RevId: c6975b0c14a43997ca5cc5db74504ad3b579ce50
* refactor: override comment dialog max-height to align top and bottom margins * refactor: chnaged max-height to percentage for CommentDialog.section * refactor: class changed from CommentDialog to CommentDialogContainer GitOrigin-RevId: 305c854d4e3be62007a8b95a9878786481c59362
* feat: comment thread status indicator added to ThreadCommentsDialog and RootComment * feat: tooltip component added, tooltip added to ThreadHistoryStatus * Fix: Prevent dialog from opening when clicking on icon by stopping event propagation * chore: comments project plasmic sync after rebase * refactor: element selection refactored in CommentsTab * sync: comments project synced * refactor: used SWR mutation in ThreadHistoryStatus GitOrigin-RevId: 6f4d9119e6ab0ff590ad204b6622b0560644f981
…ant (#640) * fix(comments-navigation): comments on variant to focus on correct variant artboard * fix(comments-navigation): improved logic to set studio focus on tpl for correct frame * chore(variant-comments): remove unused utility function * chore(variant-comments): fix typo in assert message * [PLA-11871]: Comment stats for focused mode (#641) * fix(comments): added variant specific stats for comments in focus mode * chore(variant-comments): added requested changes to structure code better * fix(comments-marker): fixed offset for add comments marker on the canvas * fix(variant-comments): fixed iid access on undefined address for newly added registered variant in focus mode * feat(variant-comments): refactor to avoid client specific imports in shared code * feat(variant-comments): added requested changes to remove fallback logic for comment stats * feat(variant-comments): find arena frame using frame variants instead of viewCtx * feat(variant-comments): remove async from getArenaFrameForSetOfVariants function * feat(variant-comments): remove invalid import after merge conflict resolution * feat(variant-comments): fix otherVariantsCount prop type on CommentIndicator * feat(variant-comments): fix get arena frame for set of variants to get correct pinned global variants * feat(variant-comments): fixed comments utils test cases * chore(comments-tests): used unique uuid for threads * feat(comment-stats): better code organization for tpl tree icon comment indicator stats GitOrigin-RevId: 8ac00fdcf5fd0e6a973c32bf635d9367b24f77ab
Change-Id: I2162e4c63663806dfd29cb36a82d5ae4caedbdf8 GitOrigin-RevId: 29ce2c70d47267b372cc105ca39dbd297b408cd9
GitOrigin-RevId: b6d7a53ab7ae55b71d8438755bce01c98f64752b
GitOrigin-RevId: 81fa66f16885736173eac6bd1fc552ae30928bb3
GitOrigin-RevId: 472c0f3db78ddbdd70dc4f9c769fc53a1efd92d3
GitOrigin-RevId: 5f767e987faaa415da095de0e34a3834086ed0ca
GitOrigin-RevId: f30b983089ea2e1816137d94628022840b33da33
* feat(rsc): Generate rsc modules Issue: https://linear.app/plasmic/issue/PLA-11492 * chore: Improve comments and typings of codegen * fix: Remove invalid comma * feat: Include useDollarServerQueries in live preview * feat: Add minimal setup for server queries in canvas-rendering * fix: Support arguments in server queries codegen * chore: add tests for codegen server queries and params * feat: add support for server queries in loader * fix(codegen): custom function import should not repeat itself * feat(codegen): move to in the client component * feat(canvas): make server queries observable in the canvas * feat(server-queries): usePlasmicServerQuery in canvas rendering * [PLA-11801] Make studio cache for server queries (#625) * feat(server-queries): add studio cache for server queries * feat(server-queries): use the function registration as id for better caching * refactor(server-queries): add type for plasmic window internals * feat(rsc): Allow hostless functions to be used in loader rsc (#437) * feat(rsc): Allow hostless functions to be used in loader rsc * fix: Remove logs and add funcId * fix: Add missing isQuery in func expr registration * test(codegen): regenerate test snapshots * Multiple fixes (#666) * fix: Use canvasCtx to get function for execute * fix: Handle upgrade of custom functions * chore: Mark getServerQueriesData as unstable * fix: use usePlasmicServerQuery for useDollarServerQueries * fix: Handle args in project upgrade * fix: handle @plasmicapp/host/registerFunction in loader * fix: Minor fixes for dependency functions to execute * chore: add NODE_ENV in pm2 * fix: Properly clone server queries * fix: Use valid js names for server queries code * refactor: Reuse loader snippet in rsc codegen * fix: Use proper signature and components * fix: Use hostless registry instead of canvasCtx * fix(codegen): minor fixes for RSC codegen --------- Co-authored-by: Felipe Mota <fmota@plasmic.app> GitOrigin-RevId: 4cde69b14eb820a80827a1f336396ae73ed05ee9
- @plasmicapp/cli@0.1.336 - @plasmicapp/loader-core@1.0.137 - @plasmicapp/loader-edge@1.0.68 - @plasmicapp/loader-fetcher@1.0.55 - @plasmicapp/loader-gatsby@1.0.381 - @plasmicapp/loader-nextjs@1.0.417 - @plasmicapp/loader-react@1.0.378 - @plasmicapp/loader-splits@1.0.63 - @plasmicapp/loader-svelte@0.0.358 - @plasmicapp/loader-vue@0.1.372 - @plasmicapp/react-web@0.2.377 - @plasmicapp/react-web-runtime@0.0.97 - @plasmicapp/watcher@1.0.84 - @plasmicpkgs/antd5@0.0.278 GitOrigin-RevId: e390ac2d296d887f8ed34f29fd85f21a315c35da
GitOrigin-RevId: c903cb478bcb127b4cd64763b5ec54e902b95ba0
GitOrigin-RevId: 72663d6530d8de3b1244f4430749e4a3ee751a10
GitOrigin-RevId: 533c76a1c6d415e79948db808bbf029860ae8df7
…#681) * fix(splits): Stop writing cookies client side in loader * chore: Remove deprecated mark * fix(splits): Only access known values for experiment splits GitOrigin-RevId: c987197705d3fb715fd825a5fba5ff6fc41d6dfd
- @plasmicapp/loader-edge@1.0.69 - @plasmicapp/loader-gatsby@1.0.382 - @plasmicapp/loader-nextjs@1.0.418 - @plasmicapp/loader-react@1.0.379 - @plasmicapp/loader-splits@1.0.64 - @plasmicapp/loader-svelte@0.0.359 - @plasmicapp/loader-vue@0.1.373 - @plasmicapp/react-web@0.2.378 - @plasmicapp/react-web-runtime@0.0.98 - @plasmicpkgs/antd5@0.0.279 GitOrigin-RevId: e98a63a4ed9c25c0de979d20194d889432f8b449
GitOrigin-RevId: cf5eba5b6ee2aeb1e388310f41db9c332ec8e03e
…iable to avoid bad reference Example: two functions with the same first argument test. When changing the interaction action from the first function to the second, we would keep the reference to the old argument GitOrigin-RevId: e3cbca6748f89c64ed706194e1956103f9d24da3
…(#1012) * feat(emails): Add react-email code components + email testing script Change-Id: Ic4904c686c71a4ad4d693bb71574b2be6b158657 * jason updates Change-Id: Icd6cdba1b5467f930801a47a81388e424db06746 * refactor to server and rename things Change-Id: Ied747ec3fa1c11d286d870d2ca412adc46201afc * Add utilities for removing classes and basic email HTML verification Change-Id: I8ddb20153ff83a90a4b0cf80e9f9a07c96164d0c * fix: Remove obsolete email code Change-Id: I3285a8a831e02113af772b593a4c3a0106f66c5f * remove existing generated html in out/ Change-Id: I5bdba38705a3a597203450d91aa4f02afd239a4c * fix(cc): improvements to react-email code components Change-Id: I9c56ed9a977267a003485a436849e247e2cb5253 * fix CI Change-Id: I99aebf9e24fcacde8430772f901bb5398e0bf11a --------- Co-authored-by: Jason Long <j@jaslong.com> GitOrigin-RevId: 5033183886c216f75428b4436bc9ec7aac2a3d0d
* Revert "fix(plasmic-basic-components): remove unused imports" This reverts commit f042be4dc808a087f45eaa068654f78f501d3f10. * Revert "fix(LoadingBoundary): don't render nothing on SSR" This reverts commit 7e9c3da319426f43996c5ea1970a9253127ccb73. * fix(loading-boundary): return fallback Change-Id: Ie3514d011b04276832087bac39d2b66794c8620b GitOrigin-RevId: 19333cfb5b37c46c13e4ad81b2652bfe47a9da80
GitOrigin-RevId: a73aa8983ff5d5428bd821735430afb3f385180b
GitOrigin-RevId: 2f1c68b9dd987f8569d83f24f212238d8686f7df
Change-Id: I07bc2a4e8d24b9b08e08bb01565b7267fe79b869 GitOrigin-RevId: 23e8533a0b542d75f669111a9df4dbdba15a4fbc
Change-Id: Ie7530dcd792c9da986a5419438d781d8603f515e GitOrigin-RevId: 82c8b8f3d1cc13bf485897284488248c11771e2a
GitOrigin-RevId: 91bc116f3d79798c2735c40828ba1bcdca990521
Change-Id: I874fbdcd49cb341994161cf8ff429bfcd905371f GitOrigin-RevId: 759afca50b8808b0d1a2c899d6e0551a395646c3
GitOrigin-RevId: cfa9b7c4a7a1deca4e83bb83ad10b19b5137bbce
* refactor: custom relativeTime added to moment js for studio * chore: added tests for moment config * refactor: condensed moment-config tests GitOrigin-RevId: 6e3c39667d0d40e7ee1af94fdb0bbba8844704d1
…tudio GitOrigin-RevId: eb3e70cb9dff135ddbe00bf7a76bf33469facb3b
* feat(copilot): upgrade openai package version to latest * feat(copilot): add images support in ui copilot backend * chore(copilot): use OpenAI exported type for CreateChatCompletionRequest Options * chore(copilot): use OpenAI types for image content part * chore(copilot): minor code and type improvements * chore(copilot): remove unused type properties * chore(copilot): use data-urls utility functions * feat(copilot): use openai type for WholeChatCompletionResponse and update data references * feat(copilot): ensure copilot response data format as per client code * chore(copilot): simplify CopilotResponseData type * fix(copilot): openai sdk validation error in case of undefined api key * chore(copilot): fix type error in corpus-eval * fix(copilot): init OpenAI sdk inside function to avoid unncessary validation errors GitOrigin-RevId: 9d1e56b7e276afa269433ffb076b724f493fe471
…ior (#994) * refactor: hide canvas marker like rest of the markers on canvas when zooming, moving, etc * refactor: added shouldHideUIOverlay in studioCtx and removed redundant checks * refactor: added param to include isResizeDragging in shouldHideUIOverlay GitOrigin-RevId: 73b2c10e955f59a858a83646162e4441343cf63b
…expected. (#1046) * fix(user-mentions): add selection with insert text to mimic setRangeText * chore(user-mentions): remove unused argument onValueChange * chore(user-mentions): improve arg definition for insertText function GitOrigin-RevId: c44990315e39c4b71e17c2f45f8d45d269f86e47
* feat(copilot): plasmic file changes for CopilotPromptImage component * feat(copilot): add image attachment backend integration in CopilotPromptDialog * chore(copilot): nitpick improve type definition using Pick utility * chore(copilot): sync list of copilot image types GitOrigin-RevId: 90d23022f099be56d3ac5c521b539e5790ed5142
…nt of allowed type (#1055) Change-Id: I0baed30291041c523616a29a7686b705fe8fc0fc GitOrigin-RevId: 24774c6c8b530074ee67e3e0c50933e160bbada6
GitOrigin-RevId: f8db6b80af422800e614807ce15c25431a0e164c
* wip right click on erena switcher brings up context menu * fixed z index issue * removed the rename option from the areaSwitcher context menu * updated context menu to use the useContextMenu hook Change-Id: I924b59a5edde5fabfbb836cefe6816fa6d9a9d53 GitOrigin-RevId: f874821dc593b54fe68f5f838c0ccb8de4c63641
Often times, it's useful to perform multiple operations on the navigation dropdown. Previously, the dropdown closed for most context menu actions. Now, it only closes when using the find all references action. Refactored context menu to AreanContextMenu since it's now used in both NavigationRows and ArenaSwitcher. Change-Id: I532fce7389d655c5c47bf51af8d35763834d353f GitOrigin-RevId: 652c072f59a43ed92f47b580048a41e996785fe5
# Conflicts: # platform/canvas-packages/yarn.lock # platform/loader-tests/src/test-utils.ts # platform/wab/Dockerfile # platform/wab/package.json # platform/wab/src/wab/client/analytics/index.ts # platform/wab/src/wab/server/bundle-migrations/22-add-aspect-ratio.ts # platform/wab/src/wab/server/cdn/images.ts # platform/wab/src/wab/server/routes/loader.ts # platform/wab/src/wab/server/routes/misc.ts # platform/wab/src/wab/server/secrets.ts # platform/wab/src/wab/server/util/s3-util.ts # platform/wab/src/wab/server/workers/codegen.ts # platform/wab/src/wab/shared/devflags.ts # platform/wab/yarn.lock
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
PR Type
Enhancement, Tests, Bug fix
Description
Major enhancements to CMS, comments, reactions, and notification logic, including improved notification grouping, reaction handling, and CMS row management.
Added and refactored utilities and logic for processing and sending comment notifications, with improved grouping by user/project/thread and support for reactions and thread histories.
Introduced a new HTML parser utility for the web importer, supporting style extraction, specificity, and CSS edge cases.
Improved code component prop registration with enhanced type checking, validation, and support for new prop types.
Added support for TanStack Router and server query features in React code generation and loader bundling.
Removed deprecated Rollup bundling logic, enforcing esbuild for loader, and added "tanstack" platform support.
Extended Cypress support utilities and added comprehensive E2E test suites for features such as Auto Open, Plexus component installation, and project panel manipulation.
Refactored and expanded tests for comment notification emails and notification logic, improving coverage and reliability.
Added Playwright tests for react-aria code components in Next.js loader projects, covering accessibility and variant support.
Refactored literal expression helpers for improved type safety and clarity.
Fixed import path for Analytics types in AmplitudeAnalytics.
Various code cleanups, import updates, and removal of unused/deprecated files and logic.
Changes walkthrough 📝
8 files
send-comments-notifications.spec.ts
Major refactor and expansion of comment notification tests with newhelpers and scenariosplatform/wab/src/wab/server/scripts/send-comments-notifications.spec.ts
postCommentwithaddComment, addedupdatedThreadStatus,reactOnComment, andremoveReactionOnComment.notification structure assertions.
createNotificationcalls and Maps.resolution, reactions, mentions, and notification preferences.
nextjs-plasmic-react-aria.spec.ts
Add Playwright tests for react-aria code components in Next.js loaderplatform/loader-tests/src/playwright-tests/nextjs/nextjs-plasmic-react-aria.spec.ts
@plasmicpkgs/react-aria code components in Next.js loader projects.
Switch, Text Field, Select, Combobox, Dialogs, Tooltip, Slider, Range
Slider) across multiple Next.js and loader versions.
StateChecker,LeafElementStateChecker) forasserting UI state and style.
variant support.
auto-open.spec.ts
Add comprehensive Cypress tests for Auto Open featureplatform/wab/cypress/e2e/auto-open.spec.ts
feature.
scenarios, and various visibility states.
handling edge cases.
checks.
tutorial.spec.ts
Refactor and improve reliability of tutorial Cypress testplatform/wab/cypress/e2e/tutorial.spec.ts
setup/teardown and dev flag management.
after each test.
nesting and improving readability.
host-app.spec.ts
Use configureProjectAppHost in host-app Cypress testsplatform/wab/cypress/e2e/host-app.spec.ts
configureProjectwithconfigureProjectAppHostforclarity and consistency.
plexus-installation.spec.ts
Add Cypress E2E tests for Plexus component installation and behaviorsplatform/wab/cypress/e2e/plexus-installation.spec.ts
installation.
drag-and-drop, copy, undo, and dependency checks.
assertions, and undo/redo flows.
component verification.
comment-notification-email.spec.ts
Rewrite and expand tests for comment notification email grouping logicplatform/wab/src/wab/server/emails/comment-notification-email.spec.ts
sendUserNotificationEmailto cover newnotification grouping logic.
notification types (comments, reactions, thread histories).
and recipients.
scenario-based tests.
prefill-cloudfront.spec.ts
Update test for prefill cloudfront to match new function signatureplatform/wab/src/wab/server/workers/prefill-cloudfront.spec.ts
getRecentLoaderPublishmentsMockto removethe
minLoaderVersionargument.8 files
exprs.ts
Refactor and enhance literal extraction and code helpers forexpressionsplatform/wab/src/wab/shared/core/exprs.ts
codeLitand removedunused variants.
(
tryExtractJson,tryExtractString,tryExtractBoolean).tryExtractJsonto use a safer JSON parser and return correcttypes.
tryExtractBooleanfor extracting boolean literals fromexpressions.
DbMgr.ts
Major enhancements to CMS, comments, reactions, and notification logicplatform/wab/src/wab/server/db/DbMgr.ts
including notification and update logic.
including new utility methods and error throws.
(e.g., using "commenter" instead of "viewer").
improved stamping logic.
result sets with Sentry logging.
improving workspace/team lookup.
thread deletion when all comments are deleted.
lastEmailedAt tracking.
html-parser.ts
Add HTML parser utility for web importer with style extractionplatform/wab/src/wab/client/web-importer/html-parser.ts
HTML/CSS into a structured tree.
sanitization.
building a WIElement tree.
module-bundler.ts
Remove Rollup, enforce esbuild for loader, add tanstack supportplatform/wab/src/wab/server/loader/module-bundler.ts
for loaderVersion >= 7.
and output.
util.ts
Extend Cypress support utilities for project, prop, and varianttestingplatform/wab/cypress/support/util.ts
project panel, component prop, frame, and variant helpers.
visibility toggling, and project configuration.
manipulation.
send-comments-notifications.ts
Refactor comment notification processing and grouping logic for emailsplatform/wab/src/wab/server/scripts/send-comments-notifications.ts
notifications.
and user/project/thread mapping.
support for reactions and thread histories.
processing more modular and robust.
code-components.ts
Improve code component prop registration type checking and handlingplatform/wab/src/wab/shared/code-components/code-components.ts
registrations.
registration errors.
registration.
component props.
handling className prop changes.
index.ts
Add TanStack Router and server query support to React codegenplatform/wab/src/wab/shared/codegen/react-p/index.ts
generated code.
platforms.
routing and server query paradigms.
1 files
AmplitudeAnalytics.ts
Fix import path for Analytics types in AmplitudeAnalyticsplatform/wab/src/wab/shared/observability/AmplitudeAnalytics.ts
correct observability directory.
1 files
SlotUtils.ts
Update imports for slot and Tpl utilities in SlotUtilsplatform/wab/src/wab/shared/SlotUtils.ts
slot and Tpl processing.
101 files